import ajax from '@/utils/public'

export function getAddress () {
  return ajax.fetchGet('/getAddress')
}

export function _addAddress (newAddress, id) {
  let params = {
    address: newAddress,
    id: id || ''
  }
  return ajax.fetchPost('/editAddress', params)
}

export function _deleteAddress (id) {
  let params = {
    id: id
  }
  return ajax.fetchPost('/delAddress', params)
}
